﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace APACWP8.View
{
    public partial class PanoramaPage9 : PhoneApplicationPage
    {
        public PanoramaPage9()
        {
            InitializeComponent();
        }
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            CheckOrientation(LayoutRoot);
        }
        private void CheckOrientation(Grid content)
        {

            if ((Orientation & PageOrientation.Portrait) == (PageOrientation.Portrait))
            {
                content.Margin = new Thickness(0, 0, 0, 0);
            }
            else if ((Orientation & PageOrientation.LandscapeLeft) == (PageOrientation.LandscapeLeft))
            {
                content.Margin = new Thickness(0, 0, 36, 0);
            }
            else if ((Orientation & PageOrientation.LandscapeRight) == (PageOrientation.LandscapeRight))
            {
                content.Margin = new Thickness(36, 0, 0, 0);
            }
        }
        private async void TextBlock_Tap_1(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://www.microsoftintegrity.com/"));

        }

        private async void TextBlock_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/anti-corruption/Pages/default.aspx"));
        }

        private async void TextBlock_Tap_2(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://bpsiis05.redmond.corp.microsoft.com/"));
        }

        private async void TextBlock_Tap_3(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://wbgsharepoint/compass/Pages/Surface-SampleProducts.aspx"));
        }

        private async void TextBlock_Tap_4(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("https://microsoft.sharepoint.com/teams/nokseeding/SitePages/Home.aspx"));
        }

        private async  void TextBlock_Tap_5(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("https://microsoft.sharepoint.com/sites/mspolicy/CentralizedFunctions/Finance/PROCUREMENT/purchasingspending/5payingpurchasing/pages/procur 5 7 non revenue distribution of microsoft products.aspx"));
        }

        private async void TextBlock_Tap_6(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/SCE/Reference Repository/APAC/Useful Templates/WW Tracking template - APAC.xlsx"));

        }

        private async void TextBlock_Tap_7(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://lcaweb/policies/Gifts/Documents/Template for Microsoft Product Donations to Corporations and Entities.docx"));

        }

        private async void TextBlock_Tap_8(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/SCE/Reference Repository/Marketing Samples (Product Giveaway) Materials/Customer Agreement.docx"));

        }
        private async void TextBlock_Tap_9(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/SCE/Reference Repository/Marketing Samples (Product Giveaway) Materials/Surface Equipment Loan Agreement Template.docx"));

        }

        private async void Image_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("https://microsoft.sharepoint.com/sites/mspolicy/CentralizedFunctions/Finance/PROCUREMENT/purchasingspending/5payingpurchasing/pages/procur 5 7 non revenue distribution of microsoft products.aspx"));
        }

     
        private async void TextBlock_Tap_11(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/SCE/Reference Repository/APAC/APAC Best Practices/APAC Non-Government Gift Approval_7Mar14.docx"));
        }

        private async void TextBlock_Tap_12(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/SCE/Reference Repository/APAC/Useful Templates/Giveaway Template.oft"));
        }

      
    }
}